<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="model.Usuario" %>
<%@ page import="dao.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Nova Tarefa</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div id="doc3" class="yui-t2">
  <div id="hd">
    <div id="header">
 
  </div>
  </div>
  <div id="bd">
    <div id="yui-main">
      <div class="yui-b">
        <div class="yui-g">
          <div class="yui-u first">
            <div class="content">
<form action="cadastroTarefa" method="post">
<%
String login = (String)session.getAttribute("LOGIN");
Usuario usuario = UsuarioDao.buscarUsuarioPorEmail(login);
%>
<input type="hidden" name="id" value="<%=usuario.getId() %>"/>
<table>
  <tr>
    <td colspan="2">Cadastrar Tarefa:</td>
  </tr>
  <tr>
    <td colspan="2"><hr /></td>
  </tr>
  <tr>
    <td>Nome da tarefa:</td>
    <td><input type="text" name="nomeTarefa"/></td>
  </tr>
  <tr>
    <td>Prazo para realizar:</td>
    <td><input type="text" name="prazo" value="5 dias"/></td>
  </tr>
    <tr>
    <td>Prioridade:</td>
    <td><input type="radio" name="relevancia" value="Pouco Importante"/>Pouco importante</td>
    </tr>
    <tr><td></td>
    <td><input type="radio" name="relevancia" value="Importante" checked="checked"/>Importante</td>
    <td></td>
    </tr><tr> <td></td>
    <td><input type="radio" name="relevancia" value="Muito Importante"/>Muito importante</td>
  </tr>
  
  <tr>
  	<td><a href="index.jsp">Voltar</a>
  	<td><input type="submit" value="Cadastrar"></td>

  </tr>
  
</table>
</form>
</div>
			
			
			
			
          </div>
          <div class="yui-u">
            <div class="content">                          </div>
			
			
			
          </div>
        </div>
      </div>
    </div>
    <div class="yui-b">
      <div id="secondary">
      <ul id="menubv">
<li>
<a href="index.jsp" title="Home">Home</a>
</li>

<li>
<a href="login.jsp" title="Sair">Sair</a>
</li>


</ul>
      </div>
    </div>
	  
	  
    </div>
  </div>
  <div id="ft">
  © Copyright 2013 - Jorge Anderson - Juarez de Lima - Otávio Araujo - Máquison Felipe
    <div id="footer">  <br>               </div>
	
	
  </div>
</body>
</html>